package com.ghc.service.impl;

import com.ghc.service.EmailService;
import com.ghc.util.QQMailUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmailServiceImpl implements EmailService {

    @Autowired
    private QQMailUtils qqMailUtils;

    @Override
    public Boolean send(String email, String code) {
        //发送邮件
        return qqMailUtils.sendMail(email, code);
    }

}
